<?php
/**
 * Created by PhpStorm.
 * User: ljc
 * Date: 2018/6/25
 * Time: 21:02
 */
$data=[['id'=>1,'name'=>'小米3','price'=>100,'num'=>2],
	['id'=>2,'name'=>'小米4','price'=>200,'num'=>1],
	['id'=>3,'name'=>'小米5','price'=>200,'num'=>3],
	['id'=>4,'name'=>'小米6','price'=>100,'num'=>2],
            ];

echo json_encode($data);